//
//  CP_ViewController.m
//  Cooper_JMap
//
//  Created by 榆木头头 on 07/18/2020.
//  Copyright (c) 2020 榆木头头. All rights reserved.
//

#import "CP_ViewController.h"
#import <Cooper_JMap/Cooper_JMap.h>

@interface CP_ViewController ()

@end

@implementation CP_ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    [[JLocationInfo shared] configKey:@"cdad10edcd0982e2ac3e544f28042664" lbsResult:^(BOOL result) {
        if (result) {
            
        }
    }];
    
}

- (IBAction)naviTo:(id)sender {
    
//    [[JGeocodeSearchModel shared] geocodeSearch:@"合肥万豪花园" locationInfoResult:^(id  _Nullable obj) {
//        JLocationInfo *info = (JLocationInfo *)obj;
//        NSLog(@"%@", info.mj_keyValues);
//    }];
    
    [[JGeocodeSearchModel shared] reGeocodeSearchLatitude:31.88158895552142 longitude:117.47727858394622 locationInfoResult:^(id  _Nullable obj) {
        JLocationInfo *info = (JLocationInfo *)obj;
        NSLog(@"%@", info.mj_keyValues);
    }];
    
//    JLocationModel *info = [[JLocationModel alloc] init];
//    info.latitude = 31.734631;
//    info.longitude = 117.330143;
//    info.name = @"安徽省政府";
//    info.address = @"合肥市滨湖新区中山路1号";
//    JShowAddressVC *vc = [[JShowAddressVC alloc] initWithAMapPOI:info];
//    [self.navigationController pushViewController:vc animated:true];
    
//    [[JNavigationTo shared] navigationWithPOI:info];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
